package com.swampex;

/*
 Java wrapper for C++ libraries.
 Author: Daniil Smelov
*/

public class Swampex
{
/*--------------------------------------------------------------------------*/
    public static native void   initDatums( String filename );

    public static native void   freeDatums( );

	public static native void   showDatums( );

	public static native void   initMaps( String path, int dx, int dy);

	public static native int[]	getMapSurface( );

	public static native void   scrollMap(int delta_x, int delta_y);

	public static native void   setLocation(double lat, double lon);

	public static native double getLocationLat();
	public static native double getLocationLon();

	public static native int	getXbyLatLon(double lat, double lon);
	public static native int	getYbyLatLon(double lat, double lon);

	public static native double getZoom();
	public static native double getZoomNext();
	public static native double getZoomPrev();

	public static native void   zoomIn();

	public static native void   zoomOut();

	public static native void   nextMap();

	public static native void   prevMap();

	public static native void   cleanup( );

/*-------------------------------------------------------------------------*/
    static
    {
        System.loadLibrary("ozex");
    }
}
